/*******************************************************************************
 * Copyright (c) 2002 Boris Pruessmann and others.
 * All rights reserved.   This program and the accompanying materials
 * are made available under the terms of the Common Public License v0.5
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/cpl-v05.html
 * 
 * Contributors:
 *    Boris Pruessmann - Initial implementation.
 ******************************************************************************/
package net.sourceforge.perforce.core.model;

import java.util.Date;

/**
  * @version $Revision: 216 $
  * @author  <a href="mailto:bpruessmann@users.sourceforge.net">Boris Pruessmann</a>
  */
public interface IP4Label
{
	// ------------------------------------------------------------------------------------- Methods
	
	/** Returns the label's description.
	  * 
	  * @return the description of the label.
	  */
	String getDescription();
	
	/** Returns the label.
	  * 
	  * @return the label.
	  */
	String getLabel();
	
	/** Returns the date of last access.
	  * 
	  * @return date of last access.
	  */
	Date getLastAccess();
	
	/** Called to retrieve the date of last update.
	  * 
	  * @return the last update's date.
	  */
	Date getLastUpdate();
	
	/** Returns true if label is locked (not modifiable), false otherwise.
	  * 
	  * @return true or false.
	  */
	boolean isLocked();
	
	/** Returns the owner of the label.
	  * 
	  * @return the label's owner.
	  */
	String getOwner();
}